package com.yigo.toc.domain.to.aggregateroot;

import com.yigo.framework.annotation.AggregateRoot;
import com.yigo.framework.snapshot.DmoSnapshot;
import com.yigo.toc.api.constants.ToStatusEnum;
import com.yigo.toc.domain.to.entity.TradeOrderAddress;
import com.yigo.toc.domain.to.entity.TradeOrderDetail;
import lombok.Data;

import java.util.*;

/**
 * @author chenzl
 */
@Data
@AggregateRoot
public class TradeOrder implements DmoSnapshot {
    /**
     * 忽略该字段，不参与建表
     */
    private Object snapshot;
    /**
     * id主键
     */
    private Long id;
    /**
     * 交易订单号
     */
    private String toNo;
    /**
     * 订单状态
     */
    private ToStatusEnum status;
    /**
     * 订单明细
     */
    private List<TradeOrderDetail> details;
    /**
     * 订单地址
     */
    private TradeOrderAddress address;
}
